
var SecondPageLayer = cc.Layer.extend({
	sprite:null,
	sp_Line:null,
	sp_Star:null,
	sp_Txt:null,
	ctor:function () {
		//////////////////////////////
		// 1. super init first
		this._super();

		/////////////////////////////
		// 2. add a menu item with "X" image, which is clicked to quit the program
		//    you may modify it.
		// ask the window size
		var size = cc.winSize;

		// add a "close" icon to exit the progress. it's an autorelease object
		var mainScene=ccs.load(res.Frist_Json).node;
		this.addChild(mainScene);

		sp_Line=mainScene.getChildByName("Image_4");
		sp_Star=mainScene.getChildByName("Image_3");
		sp_Txt=mainScene.getChildByName("Image_7");
//		sp_Line.setVisible(false);
//		sp_Star.setVisible(false);
//		sp_Txt.setVisible(false);
		sp_Line.setOpacity(0);
		sp_Star.setOpacity(0);
		sp_Txt.setOpacity(0);
		var num=1.5;
		sp_Line.runAction(
				cc.sequence(
						cc.delayTime(2.5+num),
						cc.fadeIn(2.5)
				)
		);
		sp_Star.runAction(
				cc.sequence(
						cc.delayTime(1+num),
						cc.fadeIn(2)
				)
		);
		sp_Txt.runAction(
				cc.sequence(
						cc.delayTime(6+num),
						cc.fadeIn(1)
				)
		);
		return true;
	}
});

var SecondPageScene = cc.Scene.extend({
	onEnter:function () {
		this._super();
		var layer = new SecondPageLayer();
		this.addChild(layer);
	}
});

